package domainObjects;

import infrastructure.IInfraction;

//create by martin souliere
public class Infraction implements IInfraction{

	private int id;
	private String description;
	private int niveau;

	public Infraction(int id, String description, int niveau) {
		super();
		this.description = description;
		this.niveau = niveau;
		this.id = id;
	}
	public Infraction() {}
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getNiveau() {
		return niveau;
	}
	public void setNiveau(int niveau) {
		this.niveau = niveau;
	}
	public String _toString() {
		return description + " " + niveau;
	}

	@Override
	public String toString() {
		return _toString();
	}
}